//
//  AppDelegate.m
//  DevSpoof
//
//  Created by huang on 2018/11/5.
//  Copyright © 2018年 wdys. All rights reserved.
//

#import "AppDelegate.h"
#import <ServiceManagement/ServiceManagement.h>
@interface AppDelegate ()

@end

@implementation AppDelegate

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    NSString *helperIdentify = @"com.wdys.DevSpoofHelper";
    // com.xxx.xxx为Helper的BundleID,ture/false设置开启还是关闭
    if (!SMLoginItemSetEnabled((__bridge CFStringRef)helperIdentify,YES)) {
        NSLog(@"SMLoginItemSetEnabled failed!");
    }
}

- (void)applicationWillTerminate:(NSNotification *)aNotification {
    // Insert code here to tear down your application
}


@end
